﻿#ifndef HeaderFile_H
#define HeaderFile_H
/********************************************************************************
** @ Date:2025/04/17
** @ Author: HanJiaXin
** @ Description:公共头文件
** @ Version:1.0.0
** @ ClassName:
** @ Fun:
********************************************************************************/
#include <QMutex>
#include <QString>
#include <QMap>
#include <QList>
#include <QVector>
#include <QDateTime>
#include <QPointF>
#include <QVariant>
#include <QSqlRecord>
#include <QThread>
#include <QWaitCondition>
#include <QLabel>

enum EDevType
{
	enOntology,       //设备本体 PLC
	enSubDev1,        //子设备1  摄像头
};

struct SCtrSensorSeriesInfo
{
	int nChannel;//通道号
	int nDataDirection;//数据源 1:X轴 2:Y轴 3:Z轴
	char szStartTime[64];//开始时间
	char szEndTime[64];//结束时间
	SCtrSensorSeriesInfo()
	{
		memset(this, 0, sizeof(SCtrSensorSeriesInfo));
	}
};

struct SCtrInfo
{
	QString m_sGuid;    //对象GUID
	int m_nCtrCmd;      //控制命令类型
	bool m_bCtrSync;    //同步控制/异步控制
	int m_nCtrDevType;	//控制类型 0:本体  1:摄像头
	int m_nSubCtrDevType;//云台控制设备类型 0:图像相机 1:红外相机
	SCtrSensorSeriesInfo* m_pCtrSensorSeriesInfo;//控制声振温算法仓命名参数
	QString m_sReData;	//控制命令返回结果
	SCtrInfo()
	{
		m_sGuid = "";
		m_nCtrCmd = -1;
		m_nCtrDevType = 0;
		m_bCtrSync = false;
		m_pCtrSensorSeriesInfo = nullptr;
	}
	~SCtrInfo()
	{
	}
};

enum ECCamerCmdType
{
	
};

enum EWidgetType
{
	enMainWindows,//主界面
	enRunState,	  //设备运行状态卡片
	enTrandChart,//趋势图
	enLog,		  //日志控件
};

enum EDevPointType
{
	enConnectState,                      //连接状态
	enChannel1State,					 //通道1状态
	enChannel2State,					 //通道2状态
	enChannel3State,					 //通道3状态
	enChannel4State,					 //通道4状态
	enChannel5State,					 //通道5状态
	enChannel6State,					 //通道6状态
	enChannel7State,					 //通道7状态
	enChannel8State,					 //通道8状态
	enChannel1Temp,					     //通道1温度状态
	enChannel1Vibration,				 //通道1振动状态
	enChannel1Voice,					 //通道1声音状态
	enChannel2Temp,					     //通道2温度状态
	enChannel2Vibration,				 //通道2振动状态
	enChannel2Voice,					 //通道2声音状态
	enChannel3Temp,					     //通道3温度状态
	enChannel3Vibration,				 //通道3振动状态
	enChannel3Voice,					 //通道3声音状态
	enChannel4Temp,					     //通道4温度状态
	enChannel4Vibration,				 //通道4振动状态
	enChannel4Voice,					 //通道4声音状态
	enChannel5Temp,					     //通道5温度状态
	enChannel5Vibration,				 //通道5振动状态
	enChannel5Voice,					 //通道5声音状态
	enChannel6Temp,					     //通道6温度状态
	enChannel6Vibration,				 //通道6振动状态
	enChannel6Voice,					 //通道6声音状态
	enChannel7Temp,					     //通道7温度状态
	enChannel7Vibration,				 //通道7振动状态
	enChannel7Voice,					 //通道7声音状态
	enChannel8Temp,					     //通道8温度状态
	enChannel8Vibration,				 //通道8振动状态
	enChannel8Voice,					 //通道8声音状态
};

#endif // !HeaderFile_H

